﻿using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.VisualStudio.Shell;

namespace NFinalCompiler.Helper
{
    public static class Logger
    {
        public static void Log(string message)
        {
            if (string.IsNullOrEmpty(message))
                return;
            System.Diagnostics.Trace.Write(DateTime.Now.ToString() + ": " + message + Environment.NewLine);
        }

        public static void Log(Exception ex)
        {
            System.Diagnostics.Debug.Write(ex.StackTrace);
        }
    }
}
